package com.ruoyi.conversation.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 客服对话对象 conversation
 * 
 * @author ruoyi
 * @date 2025-01-09
 */
public class Conversation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 对话id */
    @Excel(name = "对话id")
    private Long conversationId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 客服id */
    @Excel(name = "客服id")
    private Long agentId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startedTime;

    /** 是否处理 */
    @Excel(name = "是否处理")
    private String isDispose;

    public void setConversationId(Long conversationId) 
    {
        this.conversationId = conversationId;
    }

    public Long getConversationId() 
    {
        return conversationId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAgentId(Long agentId) 
    {
        this.agentId = agentId;
    }

    public Long getAgentId() 
    {
        return agentId;
    }
    public void setStartedTime(Date startedTime) 
    {
        this.startedTime = startedTime;
    }

    public Date getStartedTime() 
    {
        return startedTime;
    }
    public void setIsDispose(String isDispose) 
    {
        this.isDispose = isDispose;
    }

    public String getIsDispose() 
    {
        return isDispose;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("conversationId", getConversationId())
            .append("userId", getUserId())
            .append("agentId", getAgentId())
            .append("startedTime", getStartedTime())
            .append("isDispose", getIsDispose())
            .toString();
    }
}
